^ integer calculator. exit by pressing enter with no data ^
if %# > 0
  shx -aX %"%0%"
  exit
endif
while '' == ''
  accept X
  if '%X' == ''
    exit
  endif
  shx -aX %"%X%"
endwhile
